package com.chagee.store.operation.server.model.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @Author : hk
 * @Date : 2024/7/2
 */

@Data
@Accessors(chain = true)
public class StoreTaskRelationResponse implements Serializable {

	/**
	 * 门店打烊任务关系表主键id
	 */
	private Long id;

	//任务配置总数
	private String totalCount;

	//任务已配置数
	private String count;

	// 店铺编号
	private String storeNo;

	// 店铺名称
	private String storeName;

	//三方打烊任务状态  0禁用 1启用
	private Integer closingTaskStatus;

	//三方打烊二维码url
	private String  QRCodeUrl;


	// 任务编号
	private String taskId;

	// 任务名称
	private String taskName;

	//示意图
	private List<FileVO> picture;

	private String pictureStr;

	//文字描述
	private String wordDescribe;

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		StoreTaskRelationResponse that = (StoreTaskRelationResponse) o;
		return Objects.equals(taskId, that.taskId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(taskId);
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class FileVO implements Serializable{
		/**
		 * oss文件路径
		 */
		private String filePath;

		/**
		 * 文件名称
		 */
		private String fileName;

		/**
		 * 文件大小，byte
		 */
		private Long size;

		/**
		 * 文件类型
		 */
		private String type;

	}

}
